package week1.day2;

import java.util.Scanner;

/**
 * @Author fengzihao
 * @Date 2024-04-16 19:43
 */
public class NumberOfPalindromes {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个五位数：");
        int num = scanner.nextInt();
        if (num%10==num/10000){
            if (num/10%10==num/1000%10)
                System.out.println("这个数是回文数");
            else
                System.out.println("这个数不是回文数");
        }else
            System.out.println("这个数不是回文数");
    }
}
